import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/reset.css'
import './assets/css/iconfont.css'
import api from './api'
import store from './store'
import JsonExcel from 'vue-json-excel'
import Breadcrumb from '@/components/BreadCrumb'
import i18n from './lang'
// 引入全局组件
// excel导出组件
Vue.component('downloadExcel',JsonExcel)
// 面包屑导航
Vue.component('Breadcrumb',Breadcrumb)
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  beforeCreate() {
    Vue.prototype.$bus = this;
    Vue.prototype.$api=api;
  },
  router,// vue-router
  store,// vuex
  i18n// 国际化
}).$mount('#app')
